import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import http from './http/http'
import iView from 'iview'
import vuescroll from 'vuescroll'

import 'vuescroll/dist/vuescroll.css'
import './assets/css/common.less'
import API from '@/api'
import * as util from '@/util'
import ObjectUtil from '@/util/ObjectUtil'
import FormRuleValidator from '@/util/FormRuleValidator'

window.iView = iView
window.api = API
window.http = http

Vue.use(iView)
Vue.use(FormRuleValidator)
Vue.use(vuescroll)
Vue.prototype.util = util
Vue.prototype.objectUtil = ObjectUtil
Vue.prototype.scrollOptions = {
  bar: {
    keepShow: true
  },
  scrollPanel: {
    scrollingX: false
  }
}
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
